<?php slot('homeNav', 'active') ?>

<div id="wrapper" class="register">
	<?php include_partial('global/systemMessages', array('form' => $form)) ?>

	<div id="content">
		<h1>Login to your account</h1>
		<form class="register-form" action="<?php url_for('users/login') ?>" method="post">
			<fieldset>
				<label for="login_login_name">Username or Email</label>
				<?php echo $form['login_name']->render(array('class' => 'input-text')) ?>
				<label for="login_password">Password</label>
				<?php echo $form['password']->render(array('class' => 'input-text')) ?>
			</fieldset>
			<fieldset class="controls">
				<button class="btn_login" type="submit">Login to your account</button>
				<p class="vertical-centered"><?php echo link_to('Help, I forgot my password!', 'password_resets/new') ?></p>
				<input type="hidden" name="referer" value="<?php echo $sf_request->getAttribute('referer') ?>" />
				<?php echo link_to('Create an account?', 'users/new') ?>
			</fieldset>
		</form>
	</div>
</div>
